ARD2  1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
freemaster_cfg.h
00001 /***************************************************************************/
00008 #include "Compile_Options.h"
00009 #ifndef __FREEMASTER_CFG_H
00010 #define __FREEMASTER_CFG_H
00011 
00012 /******************************************************************************
00013 * Select interrupt or poll-driven serial communication
00014 ******************************************************************************/
00015 
00016 #define FMSTR_LONG_INTR        0    /* complete message processing in interrupt */
00017 #define FMSTR_SHORT_INTR       1    /* SCI FIFO-queuing done in interrupt */
00018 #define FMSTR_POLL_DRIVEN      0    /* no interrupt needed, polling only */
00019 
00020 /*****************************************************************************
00021 * Select communication interface (SCI/FlexCAN base address)
00022 ******************************************************************************/
00023 #ifdef USE_GENERIC_EVB_BOARD
00024 #define FMSTR_SCI_BASE 0xFFE40000UL /* LINFlex0 base on MPC5604B/P */
00025 #endif
00026 #ifdef USE_ARD2_V1
00027 #define FMSTR_SCI_BASE 0xFFE44000UL /* LINFlex1 base on MPC5604B/P */
00028 #endif 
00029 #ifdef USE_ARD2_V2
00030 #define FMSTR_SCI_BASE 0xFFE44000UL /* LINFlex1 base on MPC5604B/P */
00031 #endif 
00032 #define FMSTR_CAN_BASE 0xFFFC0000UL /* FlexCAN0 base on MPC5604B/P */
00033 
00034 #define FMSTR_DISABLE          0    /* To disable all FreeMASTER functionalities */
00035 #define FMSTR_USE_SCI          1    /* To select SCI communication interface */
00036 #define FMSTR_USE_FLEXCAN      0    /* To select FlexCAN communication interface */
00037 
00038 /* select RX and TX FlexCAN Message buffers */
00039 #define FMSTR_FLEXCAN_TXMB     0
00040 #define FMSTR_FLEXCAN_RXMB     1
00041 
00042 /******************************************************************************
00043 * Input/output communication buffer size
00044 ******************************************************************************/
00045 
00046 #define FMSTR_COMM_BUFFER_SIZE 0    /* set to 0 for "automatic" */
00047 
00048 /******************************************************************************
00049 * Receive FIFO queue size (use with FMSTR_SHORT_INTR only)
00050 ******************************************************************************/
00051 
00052 #define FMSTR_COMM_RQUEUE_SIZE 32   /* set to 0 for "default" */
00053 
00054 /*****************************************************************************
00055 * Support for Application Commands 
00056 ******************************************************************************/
00057 
00058 #define FMSTR_USE_APPCMD       1    /* enable/disable App.Commands support */
00059 #define FMSTR_APPCMD_BUFF_SIZE 32   /* App.Command data buffer size */
00060 #define FMSTR_MAX_APPCMD_CALLS 4    /* how many app.cmd callbacks? (0=disable) */
00061 
00062 /*****************************************************************************
00063 * Oscilloscope support
00064 ******************************************************************************/
00065 
00066 #define FMSTR_USE_SCOPE        1    /* enable/disable scope support */
00067 #define FMSTR_MAX_SCOPE_VARS   8    /* max. number of scope variables (2..8) */
00068 
00069 /*****************************************************************************
00070 * Recorder support
00071 ******************************************************************************/
00072 
00073 #define FMSTR_USE_RECORDER     1    /* enable/disable recorder support */
00074 #define FMSTR_MAX_REC_VARS     8    /* max. number of recorder variables (2..8) */
00075 #define FMSTR_REC_OWNBUFF      0    /* use user-allocated rec. buffer (1=yes) */
00076 
00077 /* built-in recorder buffer (use when FMSTR_REC_OWNBUFF is 0) */
00078 #define FMSTR_REC_BUFF_SIZE    1024 /* built-in buffer size */
00079 
00080 /* recorder time base, specifies how often the recorder is called in the user app. */
00081 #define FMSTR_REC_TIMEBASE     FMSTR_REC_BASE_MILLISEC(0) /* 0 = "unknown" */
00082 
00083 #define FMSTR_REC_FLOAT_TRIG   0    /* enable/disable floating point triggering */
00084 
00085 /*****************************************************************************
00086 * Target-side address translation (TSA)
00087 ******************************************************************************/
00088 
00089 #define FMSTR_USE_TSA          1    /* enable TSA functionality */
00090 #define FMSTR_USE_TSA_SAFETY   1    /* enable access to TSA variables only */
00091 #define FMSTR_USE_TSA_INROM    1    /* TSA tables declared as const (put to ROM) */
00092 
00093 /*****************************************************************************
00094 * Enable/Disable read/write memory commands
00095 ******************************************************************************/
00096 
00097 #define FMSTR_USE_READMEM      1    /* enable read memory commands */
00098 #define FMSTR_USE_WRITEMEM     1    /* enable write memory commands */
00099 #define FMSTR_USE_WRITEMEMMASK 1    /* enable write memory bits commands */
00100 
00101 /*****************************************************************************
00102 * Enable/Disable read/write variable commands (a bit faster than Read Mem)
00103 ******************************************************************************/
00104 
00105 #define FMSTR_USE_READVAR      0    /* enable read variable fast commands */
00106 #define FMSTR_USE_WRITEVAR     0    /* enable write variable fast commands */
00107 #define FMSTR_USE_WRITEVARMASK 0    /* enable write variable bits fast commands */
00108 
00109 
00110 #endif /* __FREEMASTER_CFG_H */